import 'package:flutter/cupertino.dart';
import 'package:study_flutter/dyc/view/DycAppointmentPage.dart';
import 'package:study_flutter/dyc/view/DycFindPage.dart';
import 'package:study_flutter/dyc/view/DycTimetablePage.dart';
import 'package:study_flutter/dyc/view/PersonalCenterPage.dart';
import 'package:study_flutter/dyc/view/home/Banner.dart';
import 'package:study_flutter/dyc/view/home/ButtonStyle.dart';
import 'package:study_flutter/dyc/view/home/ContextTest.dart';
import 'package:study_flutter/dyc/view/home/GridView.dart';
import 'package:study_flutter/dyc/view/home/ImageAndIcon.dart';
import 'package:study_flutter/dyc/view/home/JumpDemo.dart';
import 'package:study_flutter/dyc/view/home/ListView.dart';
import 'package:study_flutter/dyc/view/home/NetWork.dart';
import 'package:study_flutter/dyc/view/home/PackageManagement.dart';
import 'package:study_flutter/dyc/view/home/ProgressIndicator.dart';
import 'package:study_flutter/dyc/view/home/SpDemo.dart';
import 'package:study_flutter/dyc/view/home/SwitchAndCheckBoxTest.dart';
import 'package:study_flutter/dyc/view/home/TapboxA.dart';
import 'package:study_flutter/dyc/view/home/TextField.dart';
import 'package:study_flutter/dyc/view/home/TextStyle.dart';
import 'package:study_flutter/dyc/view/home/TipRoute.dart';
import 'view/DYCHomePage.dart';
import 'DycMain.dart';


class DConstant {


  /*创建路由表*/
  static Map<String, WidgetBuilder> getDycRoutes(BuildContext context) {
    var routesMap = new Map<String, WidgetBuilder>();
    routesMap[DYC_HOME_PAGE] = (context) => DYCHomeRoute();
    routesMap[DYC_JUMP] = (context) => JumpDemo();
    routesMap[DYC_MAIN] = (context) => DycMain();
    routesMap[DYC_TIMETABLE_PAGE]=(context)=> DycTimetablePagePage();
    routesMap[DYC_APPOINTMENT_PAGE]=(context)=> DycAppointmentPage();
    routesMap[DYC_FIND_PAGE]=(context)=> DycFindPage();
    routesMap[DYC_PERSONAL_CENTER_PAGE]=(context)=> PersonalCenterPage();
    routesMap[DYC_TIP_ROUTE_PAGE]=(context)=> TipRoutePage(title: null,);
    routesMap[DYC_PACKAGE_MANAGEMENT]=(context)=> PackageManagementPage();
    routesMap[DYC_CONTEXT_TEST]=(context)=> ContextTestPage();
    routesMap[DYC_TAPBOXA_PAGE]=(context)=> TapboxAPage();
    routesMap[DYC_TEXTSTYLE]=(context)=>TextStylePage();
    routesMap[DYC_BUTTON_PAGE]=(context)=>ButtonStylePage();
    routesMap[DYC_IMAGEICON_PAGE]=(context)=>ImageAndIconPage();
    routesMap[DYC_SWITCHANDCHECKBOXTEST_ROUTE]=(context)=>SwitchAndCheckBoxTestPage();
    routesMap[DYC_TEXTFIELDPAGE]=(context)=>TextFieldPage();
    routesMap[DYC_PROGRESS_BAR]=(context)=>ProgressIndicatorPage();
    routesMap[DYC_LISTVIEW_PAGE]=(context)=>ListViewPage();
    routesMap[DYC_GRIDVIEW_PAGE]=(context)=>GridViewPage();
    routesMap[DYC_NETWORK_PAGE]=(context)=>NetWorkPage();
    routesMap[DYC_BANNER_PAGE]=(context)=>BannerPage();
    routesMap[DYC_SP_PAGE]=(context)=>SpDemoPage();
    return routesMap;
  }

  /*设置路由跳转常量*/
  static String DYC_HOME_PAGE = "dyc_home_page";
  static String DYC_JUMP = "dyc_jump";
  static String DYC_MAIN="dyc_main";
  static String DYC_TIMETABLE_PAGE="dyc_timetable_page";
  static String DYC_APPOINTMENT_PAGE="dyc_appointment_page";
  static String DYC_FIND_PAGE="dyc_find_page";
  static String DYC_PERSONAL_CENTER_PAGE="dyc_personal_center_page";
  static String DYC_TIP_ROUTE_PAGE="dyc_Tip_Route_page";
  static String DYC_PACKAGE_MANAGEMENT="dyc_package_management";//包管理
  static String DYC_CONTEXT_TEST="dyc_context_test";//context
  static String DYC_TAPBOXA_PAGE="dyc_tapboxa_page";//Widget管理自身状态
  static String DYC_TEXTSTYLE="dyc_textstyle";//文本及样式
  static String DYC_BUTTON_PAGE="dyc_button_page";//按钮选择
  static String DYC_IMAGEICON_PAGE="dyc_imageicon_page";//图片
  static String DYC_SWITCHANDCHECKBOXTEST_ROUTE="dyc_switchandcheckboxtest_route";//单选开关和复选框
  static String DYC_TEXTFIELDPAGE="dyc_textfieldpage";//输入框及表单
  static String DYC_PROGRESS_BAR="dyc_progress_bar";//进度指示器
  static String DYC_LISTVIEW_PAGE="dyc_listview_page";//listview 控件学习
  static String DYC_GRIDVIEW_PAGE="dyc_gridview_page";//Gridview 学习
  static String DYC_NETWORK_PAGE="dyc_network_page";//网络控件
  static String DYC_BANNER_PAGE="dyc_banner_page";//轮播图学习
  static String DYC_SP_PAGE="dyc_sp_page";//sp学习



}
